package com.kgc.crowd.distributioncrowdwebui.config;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;

public class AlipayConfig implements InitializingBean {
    @Value(value = "${appid}")
    private String appid;
    // 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
    public static String  app_id= "2016101900723322";


    @Value(value = "${merchantprivatekey}")
    private String merchantprivatekey;
    // 商户私钥，您的PKCS8格式RSA2私钥
    public static String merchant_private_key ="MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQC9OO+L4m+gee8FDkluoBjTxD4F8+JYUnIr2V6KW+0vDoBrJxsOzwJJk++trlIeuReQH49rke4t4TXjpZzCBspHOgehvXjB2BAtoUlwDECxiN66v/Kz8T+CC+aeokwYDtKNrdr2pEYPxr3knM9rtvW98zCzWvKPiqlQk5Tsj10F25R3OjQZ625qko0Z5R4hJinMbWUVgoYORO6a/DPQxaJhuPuHwOgv7lDTcaqez5cbUGKjR0K/mEXNyaE94IuKYaENhvfoiORt7DdHyrw2n6RLmVxXTWBiEgB9OJSCSIPeuNgq9dToFXVrK3QpSB+CKXj2sG99XlMhBHo6WiHulm5nAgMBAAECggEAbOPg5izuc/j3VX99Po4e+26JCr/oV09KqHU0dIamHVhJCmC8r27tMA5T9SzF0SxOpP+kdxDJcdmSO2jIptdlfEumrKruXQ7LcJbKPhKu//t1wR5Iushv9ZSHqG5ZP9b3z9Rml1y9fMKv8GlU6/WjwSW7ttr1jykKenYTU3bE32MZDJNlCoEnXfeNiKCle5CMCA1KbPltkKN8zQkBv5T3UaiBGoGfAY3tSvJJQ3X2N1KSp0FZeEWUewqh1AuSBWShINvG78sejLReICexPa28VFkzfZ02cgdL9iTIbpnzPsqwCIv3RU6ukUiDBoOmBZ6Qh9MWGDwpqjp4SiBQ0meiUQKBgQDutu04Xi51ng+f/YBSudnG+Wi4afQtB7pSbFw6nuJnvSAQab7N8XY5VJQMeAby0ncKQd2mzzMsbcDwt/yB/Cj6KAji80G7PrLSxTpIWCfEYligt271azXUA2KShxnum1aap0M3udmppFB4iXYgf/VG/R7fW9rvqgH5ZjAASo+whQKBgQDK7JGOvz1KscY5owY5bzaBJhD/hZXZ/usSBF1S/sUHvilxHiAfPttB9/AlvD7jwa6wpuTOHjTReSDO1VPEJjLZ/GOK3gyek31AsX9L/MbKg9goveFZjTbmuhlaimsUAJ49cCz1/DhuFwpqNM+P+gN/Yb0g5RlSLh68zYkTFR+s+wKBgCAgVkSjyDTkFM4/W6nGgVyZ7FIFUGtPAvBczPzGrUmw1kPfN2KYAIUusM4MyUKcuJCU1LPCZuyvyKuc10rXGNyxzqBchJgilAZxrKpX0uJHKg5XIYO97fyeiAGYVREbrsgZgp5ZUMXX60yNk2xETEpFfoYo4oomoyVhb0xavIPRAoGAZi9e1Q1EZhrDgT6w4bc5MSvkH2g7n70YzsfX3vVgbpe58raC4nkanEuoaLg0yyg7OcWxLoJTgrCGbuFJ/1pk/RR1Y/aRUEFhL3Syb6doy449CbckhZ3w6ZsJLWjKpxXwmWulmHFcUUPVAMp7QztZC4pCXRBBAfsri1PNFQjsHIUCgYB8fg2Sg4aL+C9DlslEJA+fY2ScUKdUWzLO0lHMg0a1NLbL/Hy/HcT4lzP7MFPZZSnUgRaivpUYeOlMassn6Pmu1RvxImtk78DLafF+xynlZHkCj257B3WvV1Rh7EgFUl+PJV4ZzIaMj2Z2GCUXRU9f3P27z9X3SIlNC6k+DlbeAA==";


    @Value(value = "${alipaypublickey}")
    private String alipaypublickey;
    // 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
    public static String alipay_public_key ="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAiCv7gM1djr45rST2wHZq2Xhhhj946igDZS05lpHFDdjHVeFQbbr2mm+rhTwcloUatzYgRWbcEl1C5KuIzba6akFANzLlCAQZeaetPAhEkZhfM+4Ib25tmo8gH7Wj/z2XfyWWmpOjPDw4fk3VpsrD7PDzaReGRwUOfbHPPBBvwwftW0SEw8bAmeVeIrNFaf6FtAcZtSfzmbpimKW3uLbOtSbpy/uvspPlnB/bt+V/aeruv4ALKxkDmU4CGsI2nDxXiTa0xSDvi1pu5fLkEJc58yrTRnVt3rEMBP7HF7v8kVPU1CIcXCkSvdXySLw7Pe81DBv2VFPFIgwvkI4Dx9XjmQIDAQAB";


    @Value(value = "${notifyurl}")
    private String notifyurl;
    // 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String notify_url = "http://gxv3f4.natappfree.cc/notify_url";

    @Value(value = "${returnurl}")
    private String returnurl;
    // 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String return_url = "http://gxv3f4.natappfree.cc/return_url";

    @Value(value = "${signtype}")
    private String signtype;
    // 签名方式
    public static String sign_type = "RSA2";

    // 字符编码格式
    public static String charset = "utf-8";

    // 支付宝网关
    public static String gatewayUrl = "https://openapi.alipaydev.com/gateway.do";

    @Override
    public void afterPropertiesSet() throws Exception {
    }
}
